<?php
/**
 * 标的状态
 * User: lyc
 * Date: 2016/11/18
 * Time: 15:57
 */
class ItemEnum
{
    /**
     *
     * 标的状态
     */
   /*
    const ITEM_STATUS_DSH = 10;   //待审核
    const ITEM_STATUS_FB = 20;   //发布
    const ITEM_STATUS_MJZ = 30;   //募集中
    const ITEM_STATUS_MJWC = 40; //募集完成（满标）
    const ITEM_STATUS_HKZ= 50;   //还款中
    const ITEM_STATUS_YWC= 60;   //已完成
    const ITEM_STATUS_LB= 70;   //流标


    public static $Item_status = [
        self::ITEM_STATUS_DSH => '待审核',
        self::ITEM_STATUS_FB => '发布',
        self::ITEM_STATUS_MJZ => '募集中',
        self::ITEM_STATUS_MJWC => '募集完成',
        self::ITEM_STATUS_HKZ => '还款中',
        self::ITEM_STATUS_YWC => '已完成',
        self::ITEM_STATUS_LB => '流标',
    ];
   */
    /**
     *
     * 标的状态
     */
    const ITEM_STATUS_DSH = 'AUDIT';   //待审核
    const ITEM_STATUS_FB = 'RELEASE';   //发布
    const ITEM_STATUS_MJZ = 'COLLECTING';   //募集中
    const ITEM_STATUS_MB = 'FULLSCALE';   //满标
    const ITEM_STATUS_HKZ = 'REPAYING';   //还款中
    const ITEM_STATUS_YWC = 'FINISHED';   //已完成
    const ITEM_STATUS_YJB = 'FINISH';   //已截标
    const ITEM_STATUS_LB= 'MISCARRY';   //流标


    public static $Item_status = [
        self::ITEM_STATUS_DSH => '待审核',
        self::ITEM_STATUS_FB => '发布',
        self::ITEM_STATUS_MJZ => '募集中',
        self::ITEM_STATUS_MB => '满标',
        self::ITEM_STATUS_HKZ => '还款中',
        self::ITEM_STATUS_YWC => '已完成',
        self::ITEM_STATUS_YJB => '已截标',
        self::ITEM_STATUS_LB => '流标',
    ];

    /**
     * 标的类型
     */
    const ITEM_TYPE_TIYAN = 'TIYAN';    //体验标
    const ITEM_TYPE_XSB = 'NEWBIE';     //新手标
    const ITEM_TYPE_PTB = 'GENERAL';   //普通标
    const ITEM_TYPE_ALL = 'ALL';   //所有


    public static $Item_types = [
        self::ITEM_TYPE_TIYAN => '体验标',
        self::ITEM_TYPE_XSB => '新手标',
        self::ITEM_TYPE_PTB => '普通标',
        self::ITEM_TYPE_ALL => '所有',


    ];
    /**
     * 还款方式
     */
    /*
    const IN_TYPE_ONE                              = 10;     //按月付息，到期还本
    const IN_TYPE_TWO                              = 20;     //一次付息，到期还本
    const IN_TYPE_THREE                            = 30;     //到期还本息

    public static $Pay_types = [
        self::IN_TYPE_ONE                         =>  '按月付息，到期还本',
        self::IN_TYPE_TWO                         =>  '一次付息，到期还本',
        self::IN_TYPE_THREE                       =>  '到期还本息',
    ];
    */
    const IN_TYPE_ONE                              = 'ONE_TIME_SERVICING';     //一次性还本付息
    const IN_TYPE_TWO                              = 'FIRSEINTREST_LASTPRICIPAL';     //先息后本
    const IN_TYPE_THREE                            = 'FIXED_PAYMENT_MORTGAGE';     //等额本息
    const IN_TYPE_FOUR                            = 'FIXED_BASIS_MORTGAGE';     //等额本金

    public static $Pay_types = [
        self::IN_TYPE_ONE                         =>  '一次性还本付息',
        self::IN_TYPE_TWO                         =>  '先息后本',
        self::IN_TYPE_THREE                       =>  '等额本息',
        self::IN_TYPE_FOUR                       =>  '等额本金',
    ];

    /**
     * 起息方式
     */
    const START_INTEREST_WAY1                    = 10;     //立即起息
    const START_INTEREST_WAY2                    = 20;     //融满后起息

    public static $Start_interest = [
        self::START_INTEREST_WAY1                         =>  '立即起息',
        self::START_INTEREST_WAY2                         =>  '融满后起息',
    ];

    /**
     * 支付类型
     */
    public static function GrantType()
    {
        return [
            'AWARD'   => '发放红包',
            'SUBSIDY' => '发放站岗补贴',
            'TICKET'  => '发放加息券收益',
        ];
    }

}